package com.stlm2.dems.dao.impl;

import org.springframework.stereotype.Repository;

import com.stlm2.dems.entity.Address;
import com.stlm2.dems.dao.AddressDao;
import com.stlm2.core.base.impl.BaseDaoImpl;

import java.util.List;

@Repository("addressDao")
public class AddressDaoImpl extends BaseDaoImpl<Address> implements AddressDao {


    public Address getByUserId (int userId){
        return selectOne("getByUserId",userId);
    }

    @Override
    public List<Address> getAllByUserId(Integer userId) {
        return selectList("getAllByUserId",userId);
    }


}